package com.dzq.shiro.service;

import com.dzq.shiro.mapper.UserMapper;
import com.dzq.shiro.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User findUserByUserName(String username){
        return userMapper.findByUserName(username);
    }

}
